/*
 Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 SPDX-License-Identifier: Apache-2.0
*/

/* stylelint-disable selector-max-type */

@use '~design-tokens' as awsui;

// List styles

.list {
  list-style: none;
  padding-block: 0;
  padding-inline: 0;
  margin-block: 0;
  margin-inline: 0;
}

.option {
  list-style: none;
  border-block-end: 1px solid transparent;
}

.sorting {
  border-block-end: 1px solid awsui.$color-border-divider-default;
}

.option-body {
  display: flex;
  gap: awsui.$space-static-xxs;
  padding-block: awsui.$space-static-xs;
  padding-inline: awsui.$space-static-xs;
  background-color: awsui.$color-background-container-content;
  border-start-start-radius: awsui.$border-radius-item;
  border-start-end-radius: awsui.$border-radius-item;
  border-end-start-radius: awsui.$border-radius-item;
  border-end-end-radius: awsui.$border-radius-item;
}

// Container styles

.container {
  margin-block-end: awsui.$space-static-m;
}

.container:last-child {
  margin-block-end: 0;
}

// Table styles

.row {
  border-block-end: 1px solid transparent;
}

.active-row {
  > td:first-child {
    border-start-start-radius: awsui.$border-radius-item;
    border-end-start-radius: awsui.$border-radius-item;
  }
  > td:last-child {
    border-start-end-radius: awsui.$border-radius-item;
    border-end-end-radius: awsui.$border-radius-item;
  }
}
